﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ProjectStorageLib.Project;

public partial class Administrator_DeleteProject : System.Web.UI.Page
{
    ProjectManager manager { get; set; }
    protected void Page_Load(object sender, EventArgs e)
    {
        manager = new ProjectManager(Convert.ToDecimal(Request.QueryString[0]));
        Label1.Text = "Are you sure you want to delete project " + manager.Project.Name + " ?";
    }

    protected void btnYesClick(object sender, EventArgs e)
    {
        manager.DeleteProject();
        Response.Redirect("~/User/MyProjects.aspx");
    }
}